<template>
  <template v-if="list && list.length">
    <div class="teach-video" v-for="(item, index) in list" :key="index">
      <div class="title">{{ item.biaoti }}</div>
      <div class="desc">{{ item.miaoshu }}</div>
      <video
        v-if="item.shipin && item.shipin.length"
        :src="item.shipin[0].filePath"
        controls
      ></video>
    </div>
  </template>
</template>
<script setup>
import { GetTeachList } from "@/api/system.ts";
import { ref } from "vue";
const list = ref([]);
const GetList = () => {
  GetTeachList().then((res) => {
    if (res.code == 4201) {
      list.value = res.data;
    }
  });
};
GetList();
</script>
<style lang="scss" scoped>
.header {
  margin-bottom: 20px;
}
.content {
  border: none !important;
  background-color: transparent !important;
}
.teach-video {
  padding: 20px 32px;
  color: #333;
  .title {
    font-weight: bold;
    font-size: 25px;
  }
  .desc {
    margin-top: 20px;
    font-size: 15px;
  }
  video {
    margin-top: 30px;
    max-width: 800px;
  }
}
</style>
